﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace _01_DemoProcess
{
    class Program
    {
        static void Main(string[] args)
        {
            Process pr = Process.GetCurrentProcess();
            Console.WriteLine("id: {0}, priority: {1}", pr.Id, pr.PriorityClass);

            //pr.Threads;
            //pr.Modules;

            //pr = Process.Start("mspaint.exe");
            //pr = Process.Start("IExplore.exe", "http://www.google.com");

            ProcessStartInfo info = new ProcessStartInfo("IExplore.exe", "http://www.google.com");
            info.WindowStyle = ProcessWindowStyle.Minimized;
            pr = Process.Start(info);

            pr.WaitForExit(1000);


        }
    }
}
